InsertAt

Note: This statement is not available in the Add Statement dialog box or the Statements pane.

Inserts a value at an index in a JSONArray and pushes all values after it in the array back one position.

Syntax

InsertAt(Index, "Value")

Arguments

Argument Description
Index Index in the JSONArray. Indexes are zero based.
Value Value to insert.

Supported objects

JSONArray

Example

jsonArray = JSONNewArray()

' Inserts "First" at beginning of array

jsonArray.InsertAt(0, "First")